import request from '@/utils/request';

export async function getDetail(params) {
  return request(`/osApi/accuDeduDet/accuDeduDetInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function getInsInfor(params) {
  return request(`/osApi/accuDeduDet/getAccuDeduDetInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function updateInsData(params) {
  return request(`/osApi/accuDeduDet/updateAccuDeduDet`, {
    method: 'POST',
    body: params,
  });
}
export async function bigwarehouseData(params) {
  return request(`/osApi/accuDeduDet/getAccuAcco`, {
    method: 'POST',
    body: params,
  });
}
export async function getReduceEmpAccuList(params) {
  return request(`/osApi/accuDeduDet/pageListAccuDedu`, {
    method: 'POST',
    body: params,
  });
}
export async function getReduceEmpAccuProList(params) {
  return request(`/osApi/problem/accu/pageList`, {
    method: 'POST',
    body: params,
  });
}
export async function getDictList(params) {
  return request(`/osApi/accuDeduDet/dictList`, {
    method: 'POST',
    body: params,
  });
}
export async function changeArea(params) {
  return request(`/osApi/mdm/nmArea/queryNmArea`, {
    method: 'POST',
    body: params,
  });
}

export async function onLineDecl(params) {
  return request(`/osApi/accuDeduDet/syncAccuDeduOnLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function onLineApply(params) {
  return request(`/osApi/accuDeduDet/onLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function showConfirm(params) {
  return request(`/osApi/accuDeduDet/syncAccuDeduUnderLineDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function warin(params) {
  return request(`/osApi/accuDeduDet/accuDeduMsgRemind`, {
    method: 'POST',
    body: params,
  });
}

export async function signProcanel(params) {
  return request(`/osApi/accuDeduDet/signProbFlag`, {
    method: 'POST',
    body: params,
  });
}

export async function handleOkPro(params) {
  return request(`/osApi/problem/accu/signProbFlag`, {
    method: 'POST',
    body: params,
  });
}

export async function handleOkSuc(params) {
  return request(`/osApi/accuDeduDet/completeDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function handleOkFail(params) {
  return request(`/osApi/accuDeduDet/declFail`, {
    method: 'POST',
    body: params,
  });
}

export async function cancleApply(params) {
  return request(`/osApi/accuDeduDet/cancelDecl`, {
    method: 'POST',
    body: params,
  });
}

export async function remarkOk(params) {
  return request(`/osApi/accuDeduDet/addAccuDeduRemark`, {
    method: 'POST',
    body: params,
  });
}

export async function getRemarkData(params) {
  return request(`/osApi/accuDeduDet/listAccuDeduRemark`, {
    method: 'POST',
    body: params,
  });
}

export async function getDeclList(params) {
  return request(`/osApi/accuDeduDet/queryDeclDetAccuDeduTemplate`, {
    method: 'POST',
    body: params,
  });
}
export async function getProgress(params) {
  return request(`/osApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function bmUploadFile(params) {
  return request(`/osApi/accuDeduDet/accuDeduBatchEdit`, {
    method: 'POST',
    body: params,
  });
}

export async function pUploadFile(params) {
  return request(`/osApi/accuDeduDet/accuDeduImport`, {
    method: 'POST',
    body: params,
  });
}
